package base.demo.copy;

import base.demo.Person;

public class CopyPerson {

    Person person;

    public void setPerson(Person person){
        this.person=person;
    }

    public void setInitPerson(Person person){
        this.person=person;
        initPerson();
    }



    public  void initPerson(){
        if (null!=person){
            person.setAge(10);
            person.setName("tom");
            System.out.println(person.hashCode());
        }
    }


}
